package com.yzh.other;

public class TestMath {
    public static void main(String[] args) {
        System.out.println(Math.PI);
        System.out.println(Math.random());
        System.out.println(Math.abs(-5));//absolute
        System.out.println(Math.floor(4.5));//向下取整  4.0
        System.out.println(Math.ceil(4.5));//向上取整  5.0
        System.out.println(Math.round(4.5));//四舍五入  5

        System.out.println(Math.pow(5,2));//25
        System.out.println(Math.pow(2,5));//32

        System.out.println(Math.signum(-50.5));
        System.out.println(Math.signum(50.5));
        System.out.println(Math.signum(0));

        System.out.println(Math.sqrt(25));



    }
}
